package com.company.作业;
public class area {
    private double banjing;
    private double length;
    private double width;
    public void getarea(double i){
        this.banjing=i;
        System.out.println("圆的面积是："+3.14*banjing*banjing);
    }
    public void getarea(double x,double y){
        this.length=x;
        this.width=y;
        System.out.println("长方形的面积是："+this.length*this.width);
    }
}

